<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
    <meta content="" name="description">
    <meta content="" name="author">

    <title>股份结构新增</title>
    <link th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/font-awesome.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/plugins/footable/footable.core.css}" rel="stylesheet">
    <link href="asserts/css/bootstrap-select.min.css" rel="stylesheet"
          th:href="@{/asserts/css/bootstrap-select.min.css}">
    <link th:href="@{/asserts/css/animate.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/style.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/css/bootstrap-table/bootstrap-table.min.css}" rel="stylesheet">
    <link th:href="@{/asserts/js/layer/laydate/skins/default/laydate.css}" rel="stylesheet">
    <link th:href="@{/asserts/js/layer/laydate/need/laydate.css}" rel="stylesheet">


</head>

<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5 class="col-sm-10 padding-top-10">[[${orgPersonnel!=null}?人员编辑:人员新增]]</h5>
                    <div class="col-sm-2 text-right"><a href="javascript:history.back(-1)">返回</a></div>
                </div>

                <div class="ibox-content">
                    <div class="tabs-container">

                        <div class="tab-content">
                            <form th:action="@{/personnel/do}" th:method="post">
                                <input name="_method" th:if="${orgPersonnel!=null}" type="hidden" value="PUT"/>
                                <input name="id" th:value="${orgPersonnel!=null}?${orgPersonnel.id}:null" type="hidden"/>
                                <input name="orgId" th:value="${orgId}" type="hidden"/>
                                <div class="form-group row">

                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>姓名</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="contactsname" name="contactsname" placeholder="姓名"
                                               th:placeholder="姓名"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.contactsname}:null" type="text">
                                    </div>
                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>职务</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="positions" name="positions" placeholder="职务"
                                               th:placeholder="职务"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.positions}:null" type="text">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>任职开始日期</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="startDate" name="startDate" th:placeholder="任职开始日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.startDate}:null" >
                                    </div>
                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>任职结束日期</label>
                                    <div class="col-sm-4">
                                        <input class="laydate-icon form-control layer-date" id="endDate" name="endDate" th:placeholder="任职结束日期"
                                               onclick="laydate({istime: false, format: 'YYYY-MM-DD'})"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.endDate}:null" >
                                    </div>
                                </div>
                                <div class="form-group row">

                                    <label class="col-sm-2 col-form-label my-font-bold"><span style="color:red;">*</span>领导班子</label>
                                    <div class="col-sm-4">
<!--                                        <input class="form-control" id="groupType" name="groupType" placeholder="领导班子"-->
<!--                                               th:placeholder="领导班子"-->
<!--                                               th:value="${orgPersonnel!=null}?${orgPersonnel.groupType}" type="text">-->
                                        <select class="form-control" th:value="${orgPersonnel!=null}?${orgPersonnel.groupType}" id="groupType" name="groupType">
                                            <option value="党委（党组）成员" th:selected="${orgPersonnel!=null}?${orgPersonnel.groupType eq '党委（党组）成员'}">党委（党组）成员</option>
                                            <option value="董事会成员" th:selected="${orgPersonnel!=null}?${orgPersonnel.groupType eq '董事会成员'}">董事会成员</option>
                                            <option value="经理班子成员" th:selected="${orgPersonnel!=null}?${orgPersonnel.groupType eq '经理班子成员'}">经理班子成员</option>
                                            <option value="其他成员" th:selected="${orgPersonnel!=null}?${orgPersonnel.groupType eq '其他成员'}">其他成员</option>
                                        </select>
                                    </div>
                                    <label class="col-sm-2 col-form-label my-font-bold">备注</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="remark" name="position" placeholder="备注"
                                               th:placeholder="备注"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.remark}:null" type="text">
                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold">企业联系人电话</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="contactsphone" name="contactsphone" placeholder="企业联系人电话"
                                               th:placeholder="企业联系人电话"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.contactsphone}:null" type="text">

                                    </div>
                                    <label class="col-sm-2 col-form-label my-font-bold">邮箱</label>
                                    <div class="col-sm-4">
                                        <input class="form-control" id="email" name="email" placeholder="邮箱"
                                               th:placeholder="邮箱"
                                               th:value="${orgPersonnel!=null}?${orgPersonnel.email}" type="text">

                                    </div>
                                </div>
                                <div class="form-group row">
                                    <label class="col-sm-2 col-form-label my-font-bold" >是否法人代表</label>
                                    <div class="col-sm-4">
                                        <select class="selectpicker sffrDict" data-live-search="false" name="islegal">
                                            <option value="0">请选择</option>
                                            <option value="0">
                                                是
                                            </option>
                                            <option value="1">
                                                否
                                            </option>
                                        </select>
                                    </div>
                                </div>

                                <div class="form-group row" style="text-align: center">
                                    <div class="col-md-12" >
                                        <button class="btn btn-primary btn-sm badge-pill fa fa-save" type="submit">
                                            保存
                                        </button>
                                        <button class="btn btn-sm badge-pill fa fa-delicious" type="button" onclick="javascript:history.back(-1)">
                                            取消
                                        </button>
                                    </div>

                                </div>

                            </form>
                        </div>
                    </div>

                    <div class="clr"></div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--必须在bootstrap前引用-->
<script src="asserts/js/jquery.min.js" th:src="@{/asserts/js/jquery.min.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap.min.js" th:src="@{/asserts/js/bootstrap.min.js}" type="text/javascript"></script>
<!-- Graphs -->
<script th:replace="common/myJs::myCommonJs"></script>
<script th:src="@{/asserts/js/layer/laydate/laydate.js}" type="text/javascript"></script>
<script src="asserts/js/layer/layer.min.js" th:src="@{/asserts/js/layer/layer.min.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap-table/bootstrap-table.min.js"
        th:src="@{/asserts/js/bootstrap-table/bootstrap-table.min.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap-table/locale/bootstrap-table-zh-CN.js" th:if="${session.lang=='zh_CN'}"
        th:src="@{/asserts/js/bootstrap-table/locale/bootstrap-table-zh-CN.js}" type="text/javascript"></script>
<script src="asserts/js/bootstrap-select.min.js" th:src="@{/asserts/js/bootstrap-select.min.js}"
        type="text/javascript"></script>
<script th:src="@{/asserts/js/tree-view/js/bootstrap-treeview-cl.js?v=1.1}" type="text/javascript"></script>


<script th:inline="javascript">
    let obj = [[${orgPersonnel}]];

    $('.sffrDict').selectpicker('val', obj.islegal);

</script>

</body>
</html>
